package com.ys.entity.amazonorder;

import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;

import javax.persistence.Table;
import java.util.Date;
/**
*/
@Table(name="Tb_BaseinfoLmwh", catalog="Id")
public class TbBaseinfoLmwh extends BaseEntity<TbBaseinfoLmwh> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pid", nameJava="pid", typeDataBase="bigint")
	private Long pid;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Floor", nameJava="floor", typeDataBase="int")
	private Integer floor;
	@YsField(nameDataBase="NodeLft", nameJava="nodeLft", typeDataBase="bigint")
	private Long nodeLft;
	@YsField(nameDataBase="NodeRgt", nameJava="nodeRgt", typeDataBase="bigint")
	private Long nodeRgt;
	@YsField(nameDataBase="CategoryPath", nameJava="categoryPath", typeDataBase="varchar")
	private String categoryPath;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbBaseinfoLmwh setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getPid() {
		return pid;
	}
	public TbBaseinfoLmwh setPid(Long pid) {
		this.pid = pid;
		return this;
	}
	public String getName() {
		return name;
	}
	public TbBaseinfoLmwh setName(String name) {
		this.name = name;
		return this;
	}
	public Integer getFloor() {
		return floor;
	}
	public TbBaseinfoLmwh setFloor(Integer floor) {
		this.floor = floor;
		return this;
	}
	public Long getNodeLft() {
		return nodeLft;
	}
	public TbBaseinfoLmwh setNodeLft(Long nodeLft) {
		this.nodeLft = nodeLft;
		return this;
	}
	public Long getNodeRgt() {
		return nodeRgt;
	}
	public TbBaseinfoLmwh setNodeRgt(Long nodeRgt) {
		this.nodeRgt = nodeRgt;
		return this;
	}
	public String getCategoryPath() {
		return categoryPath;
	}
	public TbBaseinfoLmwh setCategoryPath(String categoryPath) {
		this.categoryPath = categoryPath;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbBaseinfoLmwh setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbBaseinfoLmwh setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbBaseinfoLmwh setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbBaseinfoLmwh tbBaseinfoLmwh(
		Long pid,
		String name,
		Integer floor,
		Long nodeLft,
		Long nodeRgt,
		String categoryPath,
		Integer status
			) {
		TbBaseinfoLmwh entity = new TbBaseinfoLmwh();
		entity.setPid(pid);
		entity.setName(name);
		entity.setFloor(floor);
		entity.setNodeLft(nodeLft);
		entity.setNodeRgt(nodeRgt);
		entity.setCategoryPath(categoryPath);
		entity.setStatus(status);
		return entity;
	}
}